<?php
// create new properties immediately

class Employee
{
	var $name;
	function __set($propName, $propValue)
	{
		
		$this->$propName = $propValue;
		echo "Create new class variable: \$$propName \n";
	}

}

$employee = new Employee();
$employee->name = "Thomas";
$employee->title = "CEO";

echo ("title is : $employee->title");

?>